package com.jiantong.user.impl.dao;

import com.jiantong.user.model.AppUserRole;
import com.jiantong.user.model.SysModules;
import io.terminus.common.mysql.dao.MyBatisDao;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by ThinkPad on 2017/8/8.
 */

@Repository
public class SysModulesDao extends MyBatisDao <SysModules>{


    public List<SysModules> selectTop(){
        return getSqlSession().selectList(sqlId("selectTop"));
    }

    public List<SysModules> selectChild(Map criteria){
        return getSqlSession().selectList(sqlId("selectChild"),criteria);
    }

    public List<SysModules> selectFirst(Map criteria){
        return getSqlSession().selectList(sqlId("list"),criteria);
    }
}
